package com.mofeng.myshop.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import com.mofeng.myshop.domain.po.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品分类
 * </p>
 *
 * @author MoFeng
 * @since 2024-04-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_commodity_category")
@Schema(name="CommodityCategory对象", description="商品分类")
public class CommodityCategory extends BaseEntity {

    @Schema(description= "项目ID")
    private Long projectId;

    @Schema(description= "父级目录ID")
    private Long parentId;

    @Schema(description= "图片路径")
    private String image;

    @Schema(description= "小图标")
    private String iconImage;

    @Schema(description= "按组发货，一组多少个")
    private Integer groupNumber;

    @Schema(description= "有无蓝图 0有 1无")
    private String hasPic;

    @Schema(description= "有无质量 0有 1无")
    private String hasMultiplier;

    @Schema(description= "代码前缀(功能码)")
    private String codePrefix;

    @Schema(description = "单位")
    private String unit;

    @Schema(description= "虚拟删除状态， 0 存在  1删除")
    @TableField(value = "`delete`")
    private String delete;

    @Schema(description= "是否展示 0 展示 1 不展示 注意，不展示意思是前端将不会显示此分类")
    @TableField(value = "`show`")
    private String show;

    @Schema(description= "是否打开 0打开 1 关闭  注意，关闭意思是无法访问，但会显示禁止访问提示")
    @TableField(value = "`open`")
    private String open;

    @TableField(exist = false)
    private Project project;
}
